<?
	$caminhoFora ='/home/luizmore/www';
if ($_SERVER['SERVER_NAME'] == "localhost") { 
	$caminhoSite = $DOCUMENT_ROOT;
}else{ 
	$caminhoSite = $caminhoFora;
}
 set_include_path ($caminhoSite."/moreira/admin/scripts/".PATH_SEPARATOR.$caminhoSite."/moreira/admin/".PATH_SEPARATOR.$caminhoSite."/moreira/admin/includes/");
	require "_onStartPage.php";
	include_once "_clsAllAction.php";
	
	$objAllAction = new clsAllAction();
	if( $action == "insert" ){
	
		$objAllAction->insertFiles();
		print "<script> window.opener.document.frmDownload.submit();</script>";
		
	
	}
?>
Cadastro de Downloads
<p>
<form name="frmInsert" method="post" enctype="multipart/form-data">
<input type="hidden" readonly="" name="action" value="insert" />
<input type="hidden" readonly="" name="PARAMETRO" value="<?=$PARAMETRO?>" />
<input type="hidden" readonly="" name="ID_PARAMETRO" value="<?=$ID_PARAMETRO?>" />
<input type="file" name="arquivo" />
<input type="submit" value="ADAS" />
</form>